package tasks

import (
	"fmt"
	"log"
	"proxy_resource_test/bootstrap/server"
	"time"
)

// RefDbConfig 定时刷新数据库配置
func RefDbConfig() {
	var list, _ = server.RowAll()
	var dbConfData = make(map[string]string)
	for _, item := range list {
		dbConfData[item.Key] = item.Val
	}
	//config.ConfigInDb = dbConfData
	log.Println("数据库配置刷新成功")
}

func DoRsp() {
	fmt.Println("hello--cron", time.Now().Format(time.DateTime))
}
